home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_ai
/
finite
< prev
next >
Wrap
Text File
|
1995-02-18
|
607b
|
25 lines
finite:
Syntax: finite ( A )
Description:
finite returns a matrix, the same size as the input (A),
consisting of ones and zeros. The elements of the return
matrix are 1 if the corresponding value of A is finite, or
zero if the corresponding element of A is an Inf or a NaN.
Example:
> a = [1, inf(), 3; 4, 5, 6; inf(), 8, nan()]
a =
1 inf 3
4 5 6
inf 8 nan0x80000000
> finite (a)
1 0 1
1 1 1
0 1 0
See Also: isinf, isnan